package reflect;

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;

public class Test4 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c = Class.forName("reflect.Person");
        Method[] methods = c.getDeclaredMethods();
        for(Method method : methods){
            System.out.println(method.getName()+""+method.getModifiers());
        }
    }
}
